package com.yanqu.road.server.logic.activity.condition;

import com.yanqu.road.entity.activity.ActivityConditionInfo;
import com.yanqu.road.entity.activity.ActivityInfo;
import com.yanqu.road.server.logic.activity.BaseActivityData;
import com.yanqu.road.server.manger.rank.RankMgr;

public abstract class BaseRankActivityCondition extends BaseActivityCondition {

	public BaseRankActivityCondition(ActivityInfo activityInfo, ActivityConditionInfo activityConditionInfo, BaseActivityData baseActivityData) {
		super(activityInfo, activityConditionInfo, baseActivityData);
	}

	protected void rankChange() {
		RankMgr.changeActivityRank(activityConditionInfo.getActivityId(), player.getUserId(), getValue(), getParam());
	}
}
